/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author Owner
 */
public class DjikstraAlgorithmTest {
    
    private static model.DjikstraAlgorithm test;
    private List<Vertex> vertices;
    private List<Vertex> edges;
    private static Graph g = new Graph();
    
    public DjikstraAlgorithmTest() {
    }
    
    @BeforeClass
    public static void setUpClass() {
        test = new DjikstraAlgorithm(g);
    }
    
    @AfterClass
    public static void tearDownClass() {
        test = null;
    }
    
    @Before
    public void setUp() {
        
    }
    
    @After
    public void tearDown() {
    }

    /**
     * Test of execute method, of class DjikstraAlgorithm.
     */
    @Test
    public void testExecute() {
        System.out.println("execute");
        vertices = new ArrayList<>();
        edges = new ArrayList<>();
        
        for (int i=0; i<5; i++){
            //Vertex loc = new Vertex(vertices, edges);
            vertices.add(null);
        }
        DjikstraAlgorithm test = null;
        test.execute();
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of getShortestPath method, of class DjikstraAlgorithm.
     */
    @Test
    public void testGetShortestPath() {
        System.out.println("getShortestPath");
        Vertex target = null;
        DjikstraAlgorithm test = null;
        LinkedList<Vertex> expResult = null;
        LinkedList<Vertex> result = test.getShortestPath(target);
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of run method, of class DjikstraAlgorithm.
     */
    @Test
    public void testRun() {
        System.out.println("run");
        DjikstraAlgorithm test = null;
        test.run();
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }

    /**
     * Test of setSource method, of class DjikstraAlgorithm.
     */
    @Test
    public void testSetSource() {
        System.out.println("setSource");
        Vertex source = null;
        DjikstraAlgorithm instance = null;
        instance.setSource(source);
        // TODO review the generated test code and remove the default call to fail.
        fail("The test case is a prototype.");
    }
    
}
